#ifndef DATABASETHREAD_H
#define DATABASETHREAD_H

#include "../data/userprofile.h"

#include <QMutex>
#include <QWaitCondition>
#include <QThread>

class InsertProfileThread : public QThread
{
    Q_OBJECT
public:
    explicit InsertProfileThread(QObject *parent = 0);
    
    void insertFriendProfile(UserProfile* friendProfile);

protected:
    void run();

    QMutex sync;
    QWaitCondition condition;

    QList <UserProfile* > m_queueFriendProfile;
    
};


#endif // DATABASETHREAD_H
